<?php
// +----------------------------------------------------------------------
// | 演出类产品相关处理
// +----------------------------------------------------------------------
// | Author: TongBC <501468940@qq.com>
// +----------------------------------------------------------------------
// | Date  : 2015/03/06
// +----------------------------------------------------------------------
include_once '/var/www/html/new/com.inc.php';
include_once '/var/www/html/new/d/common/func.inc.php';
include_once '/var/www/html/new/d/class/MemberAccount.class.php';
include_once '/var/www/html/new/d/class/abc/Tools.class.php';
include_once '/var/www/html/new/d/class/abc/Validate.class.php';

$ac=$GLOBALS['_ac'];
$pw=$GLOBALS['_pw'];
$s = new SoapClient(null,array("location" => "http://localhost/open/openService/pft_insideMX.php","uri" => "www.16u.com?ac_16u=$ac|pw_16u=$pw|auth_16u=true"));

if(!isset($_SESSION['sid'])) exit('{"status":"fail","msg":"登陆超时","code":0}');

switch(trim($_REQUEST['action'])) {
	
	
	
	// 场馆数据处理
	case 'venue':
		
		break;
    default:break;
	
}

// 生成语句
function _insertSqlBuild($data, $table){
	if(is_null($data)) return '';
	$sql = 'insert into `'.$table.'` set ';
	foreach($data as $field=>$value){
		$sql = $sql.'`'.$field.'`="'.$value.'",';
	}
	return rtrim($sql,',');
}

// 生成编辑语句
function _updateSqlBuild($data, $table){
	if(is_null($data)) return '';
	$sql = 'update `'.$table.'` set ';
	foreach($data as $field=>$value){
		$sql = $sql.'`'.$field.'`="'.$value.'",';
	}
	$sql = rtrim($sql,',');
	return $sql;
}
